<%@page import="com.tangdi.production.tdbase.util.MD5Util"%>
<%@page import="com.tangdi.production.mpbase.util.MapUtils"%>
<%@page import="com.tangdi.production.mpbase.util.MoneyUtils"%>
<%@page import="com.tangdi.production.mpbase.util.ObjectUtil"%>
<%@page import="com.tangdi.production.mpbase.constants.MsgCT"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Map<String,Object> reqMap = (Map<String,Object>)request.getAttribute("reqMap");
String payType = ObjectUtil.getString(reqMap.get("payType"));
String subPayType = ObjectUtil.getString(reqMap.get("subPayType"));
String custOrdNo = ObjectUtil.getString(reqMap.get("custOrderNo"));
if(StringUtils.isEmpty(subPayType)){
	subPayType = "01";
}
String rateType = payType + subPayType;

String title = "网关支付";
if("05".equals(payType)){
	title = "支付宝支付";
}else if("04".equals(payType)){
	title = "微信支付";
}

Map<String,Object> resMap = (Map<String,Object>)request.getAttribute("resMap");
String prdOrdNo = ObjectUtil.getString(resMap.get("prdOrdNo"));
String code = ObjectUtil.getString(resMap.get("code"));
String msg = ObjectUtil.getString(resMap.get("msg"));
String payAmt = ObjectUtil.getString(resMap.get("payAmt"));
if(StringUtils.isEmpty(payAmt)){
	payAmt = ObjectUtil.getString(reqMap.get("payAmt"));
}
String contentType = ObjectUtil.getString(resMap.get("contentType"));
String busContent = ObjectUtil.getString(resMap.get("busContent"));

%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><%=title %></title>
    
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  </head>
  <body>
   <%=busContent %>
  </body>
</html>